<h1>Reporte de Incidencias</h1>

<%= form_tag("/report/incidence_report/show_pdf", :method => "get") do %>
<p class="two-col"><label> Usuario: </label><%= select_tag "user_name", options_for_select(@users.collect {|t| [t.name + " " + t.lastname, t.id]}), :include_blank=>"Seleccione", :class => 'combobox'%> </p>
<p class="two-col"><label> Patrimonio Cultural: </label><%= select_tag "heritage_name", options_for_select(@heritages.collect {|t| [t.name, t.id]}), :include_blank=>"Seleccione", :class => 'combobox'%> </p>
<p class="two-col"><label>Estado: </label><%= select_tag "incidence_state", '<option value = "0">Registrado</option><option value = "1">Atendido</option>'.html_safe,:include_blank=>"Seleccione", :class => 'combobox'%></p>

<%= submit_tag("Generar") %>
<%end%>